﻿@model EditorialProyectos.Website.Models.CommentViewModel
@using (Html.BeginForm("Create", "Comment", FormMethod.Post, new { id = "CommentCreate" }))
{
    <h3>@Html.LocalizedText("Comments")</h3>

    <script type="text/html" id="templateComment"> 
        <tr>
            <td data-bind="text: DateCreated"></td>
        </tr>
        <tr>
            <td>
                <label data-bind="text: Content"></label>
            </td>
        </tr>
    </script>

    @*<script type="text/html" id="templateCommentReply">
        <div class="comment">
            <textarea id="comment" data-bind="value: Content" placeholder="@Html.LocalizedText("WriteAComment")" />
        </div>
    </script>*@

    <a data-bind="click: console.log(List())" href="#">sadasasd</a>
    
    <table>
        <tbody data-bind="template: { name: 'templateComment', foreach: List}"></tbody>
    </table>
}
